package org.cyz.tools.core.assembly.treetable;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * @author abccy
 * @title: TreeTableViewDataBean
 * @projectName RedisGUI
 * @description: TODO
 * @date 2020-8-171:00
 */
public class DataBean {
    //通用树表对应的一行记录可最多容纳的属性
    public static final int currentPropertyCount = 15;
    private final StringProperty data1;
    private final StringProperty data2;
    private final StringProperty data3;
    private final StringProperty data4;
    private final StringProperty data5;
    private final StringProperty data6;
    private final StringProperty data7;
    private final StringProperty data8;
    private final StringProperty data9;
    private final StringProperty data10;
    private final StringProperty data11;
    private final StringProperty data12;
    private final StringProperty data13;
    private final StringProperty data14;
    private final StringProperty data15;

    public DataBean(String[] values) {
        this.data1    = new SimpleStringProperty(values[0]);
        this.data2    = new SimpleStringProperty(values[1]);
        this.data3    = new SimpleStringProperty(values[2 ]);
        this.data4    = new SimpleStringProperty(values[3 ]);
        this.data5    = new SimpleStringProperty(values[4 ]);
        this.data6    = new SimpleStringProperty(values[5 ]);
        this.data7    = new SimpleStringProperty(values[6 ]);
        this.data8    = new SimpleStringProperty(values[7 ]);
        this.data9    = new SimpleStringProperty(values[8 ]);
        this.data10   = new SimpleStringProperty(values[9 ]);
        this.data11   = new SimpleStringProperty(values[10]);
        this.data12   = new SimpleStringProperty(values[11]);
        this.data13   = new SimpleStringProperty(values[12]);
        this.data14   = new SimpleStringProperty(values[13]);
        this.data15   = new SimpleStringProperty(values[14]);
    }

    public StringProperty data1Property() { return data1; }
    public StringProperty data2Property() { return data2; }
    public StringProperty data3Property() { return data3; }
    public StringProperty data4Property() { return data4; }
    public StringProperty data5Property() { return data5; }
    public StringProperty data6Property() { return data6; }
    public StringProperty data7Property() { return data7; }
    public StringProperty data8Property() { return data8; }
    public StringProperty data9Property() { return data9; }
    public StringProperty data10Property() { return data10; }
    public StringProperty data11Property() { return data11; }
    public StringProperty data12Property() { return data12; }
    public StringProperty data13Property() { return data13; }
    public StringProperty data14Property() { return data14; }
    public StringProperty data15Property() { return data15; }

}
